package net.huashitong.synthetical.AddressBook.service;

import com.sirdc.modules.core.dao.BaseDao;
import com.sirdc.modules.sys.base.StringPKService;
import net.huashitong.synthetical.AddressBook.dao.AddressBookUserDao;
import net.huashitong.synthetical.AddressBook.entity.AddressBookUser;
import net.huashitong.synthetical.AddressBook.filter.BookFilter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AddressBookUserService extends StringPKService<AddressBookUser> {
    @Autowired
    private AddressBookUserDao dao;

    @Override
    protected BaseDao<AddressBookUser, String> getDao() {
        return dao;
    }

    public List<AddressBookUser> queryByFilter(BookFilter filter) {
        return dao.queryByFilter(filter);
    }
}
